package com.iweb.result;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
public class Result {
    private Integer code;// 状态码 2000 表示执行成功
    private String message;// 状态信息描述
    private Boolean flag; // 执行的结果
    private Object data;// 返回的数据

    public Result(Integer code, String message, Boolean flag, Object data) {
        this.code = code;
        this.message = message;
        this.flag = flag;
        this.data = data;
    }
}
